#include"linklist.cpp"
#include <cstddef>
#include<string.h>
void split1(LinkNode*&L)
{
    LinkNode*pre,*p,*q;
    if(L->next==NULL||L->next==NULL)
    {
        return;
    }
    int x=L->next->data;
    pre=L->next;
    p=pre->next;
    while(p!=NULL)
    {
        if(p->data<x)
        {
            pre->next=p->next;
            p->next=L->next;
            L->next=p;
            p=pre->next;
        }
        else
        {
            pre=p;
            p=pre->next;

        }
    }    

}
